package api

import (
	"bpic/assert"
	"bpic/config"
	"io/fs"
	"net/http"
)

func Static() http.FileSystem {
	httpFs, err := fs.Sub(assert.StaticFS, "static")
	if err != nil {
		panic(err)
	}
	return http.FS(httpFs)
}

func Pic() http.FileSystem {
	return http.Dir(config.RootPath)
}
